package com.gouaixin.bee.beeframework2.tool;

import android.os.CountDownTimer;

/**
 * Created by Administrator on 2015/3/20.
 */
public class TimeCountUtil extends CountDownTimer {
    /**
     * @param millisInFuture    The number of millis in the future from the call
     *                          to {@link #start()} until the countdown is done and {@link #onFinish()}
     *                          is called.
     * @param countDownInterval The interval along the way to receive
     *                          {@link #onTick(long)} callbacks.
     */
    public TimeCountUtil(long millisInFuture, long countDownInterval) {
        super(millisInFuture, countDownInterval);
    }

    @Override
    public void onTick(long millisUntilFinished) {
//        phone_getauthCode.setBackgroundColor(Color.parseColor("#E0D1DF"));
//        phone_getauthCode.setClickable(false);
//        phone_getauthCode.setText(millisUntilFinished / 1000 + "秒后可重新发送");
    }

    @Override
    public void onFinish() {

//        phone_getauthCode.setText("重新获取");
//        phone_getauthCode.setClickable(true);
//        phone_getauthCode.setBackgroundColor(Color.parseColor("#4EB84A"));

    }
}
